package cn.com.nes.mybatis.agent.templatedesign.mapper;


import cn.com.nes.mybatis.agent.templatedesign.entity.HHousemodel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *  Mapper 接口
 *
 * @author 
 * @since 2023-09-26
 */
@Mapper
public interface HHousemodelMapper extends BaseMapper<HHousemodel> {

    public int addHouseModel( @Param("modeltype")String modeltype, @Param("modelname")String modelname, @Param("introduction")String introduction, @Param("showpicpath")String showpicpath,@Param("showpicfilename")String showpicfilename, @Param("detailpicpath")String detailpicpath,@Param("detailpicfilename")String detailpicfilename, @Param("CADfiletxt")String CADfiletxt,@Param("CADfile")String CADfile,@Param("CADfilename")String CADfilename, @Param("createUid")String createUid, @Param("createTime")String createTime,@Param("createName")String createName,@Param("modeltypename")String modeltypename);
    public int updateByHouseModelId(@Param("housemodelid")int housemodelid, @Param("modeltype")String modeltype, @Param("modelname")String modelname, @Param("introduction")String introduction, @Param("showpicpath")String showpicpath,@Param("showpicfilename")String showpicfilename, @Param("detailpicpath")String detailpicpath,@Param("detailpicfilename")String detailpicfilename, @Param("CADfiletxt")String CADfiletxt,@Param("CADfile")String CADfile,@Param("CADfilename")String CADfilename,@Param("modeltypename")String modeltypename,@Param("modifyUid")String modifyUid,@Param("createName")String createName);
    //public int selectByHouseModelId(@Param("housemodelid")String housemodelid );
    public int updateIsDeleteByHouseModelId(@Param("housemodelid") int housemodelid);
   public int selectALLlist();
    //@MapKey("housemodelid")
   public List<Map<String, Object>> selectByModelNameorType(@Param("housemodelid")Integer housemodelid,@Param("modeltype") String modeltype, @Param("modelname") String modelname, @Param("offset") int offset,@Param("pagesize") int pagesize);

    List<Map<String, Object>> selectByModelName(@Param("modelname") String modelname);
}
